#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20210908.sql ./mysql/db
cp ../sql/ry_config_20211118.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../ipsos-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy ipsos-gateway "
cp ../ipsos-gateway/target/ipsos-gateway.jar ./ipsos/gateway/jar

echo "begin copy ipsos-auth "
cp ../ipsos-auth/target/ipsos-auth.jar ./ipsos/auth/jar

echo "begin copy ipsos-visual "
cp ../ipsos-visual/ipsos-monitor/target/ipsos-visual-monitor.jar  ./ipsos/visual/monitor/jar

echo "begin copy ipsos-modules-system "
cp ../ipsos-modules/ipsos-system/target/ipsos-modules-system.jar ./ipsos/modules/system/jar

echo "begin copy ipsos-modules-file "
cp ../ipsos-modules/ipsos-file/target/ipsos-modules-file.jar ./ipsos/modules/file/jar

echo "begin copy ipsos-modules-job "
cp ../ipsos-modules/ipsos-job/target/ipsos-modules-job.jar ./ipsos/modules/job/jar

echo "begin copy ipsos-modules-gen "
cp ../ipsos-modules/ipsos-gen/target/ipsos-modules-gen.jar ./ipsos/modules/gen/jar

